package me.kevinwalker.bean;

import org.springframework.beans.factory.FactoryBean;

public class MongoDBFactoryBean implements FactoryBean {
    private final Class<?> mongodbInterface;
    private final Object object;

    public MongoDBFactoryBean(Class<?> mongodbInterface, Object object) {
        this.mongodbInterface = mongodbInterface;
        this.object = object;
    }

    @Override
    public Object getObject() {
        return object;
    }

    @Override
    public Class<?> getObjectType() {
        return mongodbInterface;
    }
}